//
//  ShareTableViewCell.swift
//  CJXSwiftStoryboard
//
//  Created by CJX on 2016/10/21.
//  Copyright © 2016年 caijianxi. All rights reserved.
//

import UIKit

class ShareTableViewCell: UITableViewCell {

    var priceLabel = UILabel()
    var shareBtn  = UIButton(type: .Custom)
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: .Default, reuseIdentifier: nil)
        
        priceLabel.frame = CGRectMake(30, SCREEN_HEIGHT*0.01, SCREEN_WIDTH*0.3, SCREEN_HEIGHT*0.06)
        priceLabel.font = UIFont.systemFontOfSize(16)
        self.addSubview(priceLabel)
        
        
        shareBtn.frame = CGRectMake( SCREEN_WIDTH-120, SCREEN_HEIGHT*0.01, 100, SCREEN_HEIGHT*0.06)
        shareBtn.setTitle("Share", forState: .Normal)
        shareBtn.setTitleColor(UIColor.blackColor(), forState: .Normal)
        self.addSubview(shareBtn)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
